<?php
/**
 * Block Current Job Information
 */
use Fox\Generator;
use Fox\Html\DropList;
use Fox\Html\Input;
use Fox\Html\TextArea;
$bkjob = new Fox\Html\Block("jobInfo");
$bkjob->add(new Input(array("company","companyName"),false))
		->autocomplete(Generator::url('company','autocomplete'));
$bkjob->add(new Input("jobtitle",false));

$types = Fox\Dao::finder(Hive\Job\Contract\Type::className())
		->where('active = ? AND loekz = ?',array(1,0))
		->find();
$bkjob->add(new DropList('contract_type',true))
			->options($types,'type',Fox\Generator::call('label'));
$bkjob->add(new Input("start_date",false));
$bkjob->add(new Input("salary",false));
$bkjob->add(new TextArea("comment"),2);
$bkjob->item("salary")
		->add(new Input("bonus",false))
		->labelSize("60");
$bkjob->item("start_date")
		->add(new Input("end_date",false))
		->labelSize("60");
$bkjob->item("comment")->width("90%");
return $bkjob;